import gradio as gr
import os


with gr.Blocks() as app:
    with gr.Tab("人体分割"):
        from body_seg.demo import demo
        demo()
    with gr.Tab("背景去除/目标清除"):
        from PP_Matting.demo import demo
        demo()
    with gr.Tab("头发染色"):
        from hair_change_color.demo import demo
        demo()
    with gr.Tab("人头68点检测并端正头像"):
        from face68.demo import demo
        demo()
    with gr.Tab("证件照"):
        from portrait.demo import demo
        demo()
app.launch(server_name="0.0.0.0", debug=int(os.environ.get("debug", 0)))
